package Drivers;

import DAO.*;

public class CreateDatabase {
	public static void createDB(){
		Class k [] = {Department.class, DepartmentEmp.class, DepartmentManager.class, Employee.class, ContactInfo.class};
		HibernateContext.addClasses(k);
		HibernateContext.createSchema();
	}
	public static void loadDB(){
		Employee.load();
		Department.load();
		DepartmentEmp.load();
		DepartmentManager.load();
	}
	public static void main(String a[]){
		CreateDatabase.createDB();
		CreateDatabase.loadDB();
	}
}
